package com.cskaoyan.service;


import com.cskaoyan.bean.*;
import com.cskaoyan.bean.admin.vo.DashboardVo;
import com.cskaoyan.bean.admin.vo.OrderStatisticsVo;
import com.cskaoyan.bean.admin.vo.UserStatisticsVo;
import com.cskaoyan.bean.wx.vo.UserRegister;
import com.cskaoyan.bean.wx.vo.WxFeedbackSubmit;

import java.util.List;


/**
 * @Author tangjian
 * @Date 2021/10/18 20:59
 * @description
 */
public interface UserService {


    BasePageData query(String username, String mobile, BaseParam param);

    BaseRespVo query(Integer id);

    BasePageData addressQuery(String name, Integer userid, BaseParam param);

    BasePageData collectQuery(Integer valueid, Integer userid, BaseParam param);

    BasePageData footprintQuery(Integer userId, Integer goodsId, BaseParam param);

    BasePageData historyQuery(Integer userId, String keyword, BaseParam param);

    BasePageData feedbackQuery(String username, Integer id, BaseParam param);

    int update(User user);

    DashboardVo selectDashboard();

    UserStatisticsVo selectUserStatistics();

    OrderStatisticsVo selecOrderStatistics();

    User selectPwdByUserName(String username);

    boolean userIsExist(String username);

    int wxRegisterUserInsert(UserRegister register);

    List<Address> addressQuery(Integer userId);

    int addressInsert(Address address);

    int addressDefaultCancel();

    int addressDelete(Integer id);

    int footprintDelete(Integer id);

    int feedbackInsert(WxFeedbackSubmit wxFeedbackSubmit, User user);

    int insert(User user);

    int updateInWechat(User user);

    BasePageData listFootprint(Integer userId, BaseParam baseParam);

    boolean phoneIsExist(String mobile);

    User updatePwdByMobile(String mobile,String pwd);
}
